--1.导入官方文件
local containers = require("containers")
local params = containers.params

--2创建自己的的容器布局
params.tsqt_params_00 = {--以下内容都需要根据自己的需要填写，而parmas后面跟的键值则是该容器布局的名称
    widget = {
        slotpos = 
        {
            Vector3(50, -20, 0),
            Vector3(50, -120, 0),
        },
        animbank = "ui_cookpot_1x2",
        animbuild = "tsqt_params_00",
        pos = Vector3(420, -150, 0), 
        slotbg =
        {--单独定义每个格子用到的背景
            { image = "tsqt_params_00.tex", atlas = "images/containerimages/tsqt_params_00.xml" },
            { image = "tsqt_params_00.tex", atlas = "images/containerimages/tsqt_params_00.xml" },
        },
    },
    type = "tsqt_params_00",                  
    openlimit = 1,
}


--3.更新容器
for k, v in pairs(params) do
    containers.MAXITEMSLOTS = math.max(containers.MAXITEMSLOTS,
        v.widget.slotpos ~= nil and
        #v.widget.slotpos or 0)
end